//
//  NSXLeftShakeTableViewCell.m
//  B段项目
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 徐茂怀. All rights reserved.
//

#import "NSXLeftShakeTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "FitHeader.h"
@implementation NSXLeftShakeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _titleLabel = [[UILabel alloc]init];
        _titleLabel.textAlignment = 1;
        _titleLabel.textColor = [UIColor blueColor];
        _titleLabel.font = [UIFont systemFontOfSize:25 *FitWidth];
        [self.contentView addSubview:_titleLabel];
        
        _categoryLabel = [[UILabel alloc]init];
        _categoryLabel.textAlignment = 1;
        _categoryLabel.textColor = [UIColor blueColor];
        _categoryLabel.font = [UIFont systemFontOfSize:15 *FitWidth];
        _categoryLabel.numberOfLines = 0;
        [self.contentView addSubview:_categoryLabel];
        
        _photoImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_photoImageView];
    
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    _titleLabel.frame = CGRectMake(20 *FitWidth, 20 *FitHeight, 335 *FitWidth, 50 *FitHeight);
    
    _categoryLabel.frame = CGRectMake(20 *FitWidth, 70 *FitHeight, 335 *FitWidth, 50 *FitHeight);
    
    _photoImageView.frame = CGRectMake(20 *FitWidth, 120 *FitHeight, 335 *FitWidth, 250 *FitHeight);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
